home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Demos / DTP / QuarkXPress™ 3.3 / Scripts / Frontier Runtime scripts / Examples.FitBoxToText < prev    next >
MacBinary  |  1994-05-02  |  8.0 KB  |  [2CLK/LAND]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Aug 17 07:58:14 1993, modified Mon May 2 05:46:23 1994, creator 'LAND', type '2CLK' "Examples.FitBoxToText", at 0x80 8016 bytes resource Apple HFS/HFS+ resource fork, map offset 0x1ea6, map length 0xaa, data length 0x1da6, at 16 0x56696369, nextResourceMap 0x651d24, fileRef 0x18fa, list offset 0x1c, name offset 0x7e, 3 types, 0x53545220 'STR ' * 4 resource offset 0x1a default (weak)
99% file Adobe Photoshop Color swatch, version 0, 256 colors; 1st RGB space (0), w 0x1ea6, x 0, y 0x1da6, z 0 ; 2nd space (170), w 0x5669, x 0x6369, y 0x6f75, z 0x7300 default (weak)
98% file data default
100% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[2CLK]
macFileCreator[LAND]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 45 78 61 6d 70 6c | 65 73 2e 46 69 74 42 6f |..Exampl|es.FitBo|
|00000010| 78 54 6f 54 65 78 74 00 | 00 00 00 00 00 00 00 00 |xToText.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 32 43 4c 4b 4c 41 4e | 44 01 00 00 00 00 00 00 |.2CLKLAN|D.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 1f 50 a8 96 78 56 a9 |........|..P..xV.|
|00000060| ea 7c 6f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.|o.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 94 c4 00 00 |........|........|
|00000080| 00 00 01 00 00 00 1e a6 | 00 00 1d a6 00 00 00 aa |........|........|
|00000090| 56 69 63 69 6f 75 73 00 | 66 ad c2 00 0f 00 0f d8 |Vicious.|f.......|
|000000a0| d6 00 00 12 92 00 00 a7 | 0d 4b 0b 00 00 12 92 00 |........|.K......|
|000000b0| 15 45 78 61 6d 70 6c 65 | 73 2e 46 69 74 42 6f 78 |.Example|s.FitBox|
|000000c0| 54 6f 54 65 78 74 02 00 | 00 00 32 43 4c 4b 4c 41 |ToText..|..2CLKLA|
|000000d0| 00 00 32 43 4c 4b 4c 41 | 4e 44 00 00 00 00 00 00 |..2CLKLA|ND......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 ab 83 6f 29 00 00 | 00 00 00 00 1f 50 6f 75 |....o)..|.....Pou|
|00000100| 73 00 f3 b5 98 00 0f 00 | 0f d8 d6 00 00 02 18 00 |s.......|........|
|00000110| 00 00 05 00 05 00 00 2e | 7c 00 00 a7 0d 4b 0b 15 |........||....K..|
|00000120| 45 78 61 6d 70 6c 65 73 | 2e 46 69 74 42 6f 78 54 |Examples|.FitBoxT|
|00000130| 6f 54 65 78 74 bc 14 00 | 00 ff ff 00 20 37 24 0e |oText...|.... 7$.|
|00000140| 4f 6e 6c 69 6e 65 20 53 | 63 72 69 70 74 73 64 00 |Online S|criptsd.|
|00000150| 0a fb 70 40 80 ed 0c 00 | 00 ff ff 00 b4 78 d8 0b |..p@....|.....x..|
|00000160| 53 69 64 20 56 69 63 69 | 6f 75 73 00 b4 7a 0c 00 |Sid Vici|ous..z..|
|00000170| 0f 00 0f d8 d6 4c 44 45 | 46 00 00 00 00 00 00 00 |.....LDE|F.......|
|00000180| 00 00 00 06 05 32 2e 30 | 2e 31 00 00 00 09 08 46 |.....2.0|.1.....F|
|00000190| 72 6f 6e 74 69 65 72 00 | 00 01 c2 00 01 04 e0 00 |rontier.|........|
|000001a0| 02 00 00 00 18 00 00 01 | 2e 00 02 02 00 00 0f 06 |........|........|
|000001b0| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 09 00 00 00 00 00 | 01 00 01 00 00 06 54 00 |........|......T.|
|000001e0| 0f a4 d0 77 90 a8 96 86 | 68 00 00 00 65 80 00 00 |...w....|h...e...|
|000001f0| 2f 00 0c 00 98 02 5e 00 | 00 00 00 00 00 00 00 00 |/.....^.|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 6f | 6e 20 63 61 6c 6c 69 6d |.......o|n callim|
|00000220| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 20 c7 74 |porter (|path) .t|
|00000230| 68 69 73 20 73 63 72 69 | 70 74 20 69 73 20 73 61 |his scri|pt is sa|
|00000240| 76 65 64 20 77 69 74 68 | 20 61 6c 6c 20 65 78 70 |ved with| all exp|
|00000250| 6f 72 74 65 64 20 6f 62 | 6a 65 63 74 73 0d 09 55 |orted ob|jects..U|
|00000260| 6e 2d 63 6f 6d 6d 65 6e | 74 20 61 6e 64 20 65 64 |n-commen|t and ed|
|00000270| 69 74 20 74 68 65 20 66 | 6f 6c 6c 77 6f 69 6e 67 |it the f|ollwoing|
|00000280| 20 6c 69 6e 65 20 74 6f | 20 61 75 74 6f 2d 69 6e | line to| auto-in|
|00000290| 73 74 61 6c 6c 20 69 74 | 65 6d 20 69 6e 20 73 63 |stall it|em in sc|
|000002a0| 72 69 70 74 20 6d 65 6e | 75 20 66 6f 72 20 72 75 |ript men|u for ru|
|000002b0| 6e 2d 30 74 69 6d 65 20 | 66 6f 6c 6b 73 0d 09 6d |n-0time |folks..m|
|000002c0| 65 6e 75 2e 61 64 64 6d | 65 6e 75 63 6f 6d 6d 61 |enu.addm|enucomma|
|000002d0| 6e 64 28 40 73 79 73 74 | 65 6d 2e 6d 65 6e 75 62 |nd(@syst|em.menub|
|000002e0| 61 72 73 2e 58 50 52 33 | 2c 22 53 63 72 69 70 74 |ars.XPR3|,"Script|
|000002f0| 73 22 2c 22 46 69 74 20 | 42 6f 78 20 54 6f 20 54 |s","Fit |Box To T|
|00000300| 65 78 74 22 2c 22 51 58 | 50 2e 45 78 61 6d 70 6c |ext","QX|P.Exampl|
|00000310| 65 73 2e 46 69 74 42 6f | 78 54 6f 54 65 78 74 28 |es.FitBo|xToText(|
|00000320| 29 22 29 0d 09 72 65 74 | 75 72 6e 20 28 65 78 70 |)")..ret|urn (exp|
|00000330| 6f 72 74 2e 69 6d 70 6f | 72 74 65 72 20 28 70 61 |ort.impo|rter (pa|
|00000340| 74 68 29 29 0d 80 00 00 | 00 00 00 84 00 00 00 00 |th))....|........|
|00000350| 00 80 00 00 00 00 00 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 0d 0c 63 61 6c 6c 69 6d | 70 6f 72 74 65 72 00 00 |..callim|porter..|
|00000370| 00 02 01 31 00 00 1b ae | 73 63 70 74 00 01 04 bc |...1....|scpt....|
|00000380| 00 02 00 00 03 ba 00 00 | 17 74 00 00 02 00 00 0f |........|.t......|
|00000390| 06 47 65 6e 65 76 61 00 | 00 00 00 00 00 00 00 00 |.Geneva.|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 09 00 00 00 00 | 00 00 00 00 00 00 06 54 |........|.......T|
|000003c0| 00 00 a8 96 67 52 a9 ea | 7c 41 00 00 00 08 00 00 |....gR..||A......|
|000003d0| 00 26 00 00 01 c6 02 7a | 4c 41 4e 44 00 00 00 00 |.&.....z|LAND....|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 0d a9 31 39 39 33 20 51 |........|..1993 Q|
|00000400| 75 61 72 6b 2c 20 49 6e | 63 2e 20 20 41 6c 6c 20 |uark, In|c. All |
|00000410| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|00000420| 0d 09 54 48 49 53 20 53 | 43 52 49 50 54 20 57 49 |..THIS S|CRIPT WI|
|00000430| 4c 4c 20 46 49 54 20 41 | 20 54 45 58 54 20 42 4f |LL FIT A| TEXT BO|
|00000440| 58 20 41 52 4f 55 4e 44 | 20 54 48 45 20 54 45 58 |X AROUND| THE TEX|
|00000450| 54 20 54 48 41 54 0d 09 | 49 53 20 49 4e 53 49 44 |T THAT..|IS INSID|
|00000460| 45 20 4f 46 20 49 54 2e | 0d 0d 0d 09 45 52 52 4f |E OF IT.|....ERRO|
|00000470| 52 20 52 4f 55 54 49 4e | 45 20 54 48 41 54 20 49 |R ROUTIN|E THAT I|
|00000480| 53 20 43 41 4c 4c 45 44 | 20 49 46 20 54 48 45 52 |S CALLED| IF THER|
|00000490| 45 20 49 53 20 4e 4f 20 | 54 45 58 54 20 42 4f 58 |E IS NO |TEXT BOX|
|000004a0| 0d 09 53 45 4c 45 43 54 | 45 44 20 4f 52 20 4d 4f |..SELECT|ED OR MO|
|000004b0| 52 45 20 54 48 41 4e 20 | 4f 4e 45 20 54 45 58 54 |RE THAN |ONE TEXT|
|000004c0| 20 42 4f 58 20 53 45 4c | 45 43 54 45 44 2e 0d 0d | BOX SEL|ECTED...|
|000004d0| 6f 6e 20 63 61 6e 74 64 | 6f 28 29 0d 09 77 69 74 |on cantd|o()..wit|
|000004e0| 68 20 51 58 50 2c 51 58 | 50 2e 64 65 66 73 2c 6f |h QXP,QX|P.defs,o|
|000004f0| 62 6a 65 63 74 4d 6f 64 | 65 6c 0d 09 09 64 69 61 |bjectMod|el...dia|
|00000500| 6c 6f 67 2e 6e 6f 74 69 | 66 79 28 22 41 20 73 69 |log.noti|fy("A si|
|00000510| 6e 67 6c 65 20 74 65 78 | 74 20 62 6f 78 20 6d 75 |ngle tex|t box mu|
|00000520| 73 74 20 62 65 20 73 65 | 6c 65 63 74 65 64 2e 22 |st be se|lected."|
|00000530| 29 0d 09 09 62 72 69 6e | 67 54 6f 46 72 6f 6e 74 |)...brin|gToFront|
|00000540| 28 29 0d 09 09 73 65 74 | 28 76 65 72 74 69 63 61 |()...set|(vertica|
|00000550| 6c 4d 65 61 73 75 72 65 | 2c 6f 72 69 67 76 65 72 |lMeasure|,origver|
|00000560| 74 29 0d 09 09 73 65 74 | 28 68 6f 72 69 7a 6f 6e |t)...set|(horizon|
|00000570| 74 61 6c 4d 65 61 73 75 | 72 65 2c 6f 72 69 67 68 |talMeasu|re,origh|
|00000580| 6f 72 7a 29 0d 09 09 72 | 65 74 75 72 6e 0d 0d 09 |orz)...r|eturn...|
|00000590| 43 48 45 43 4b 49 4e 47 | 20 49 46 20 54 48 45 52 |CHECKING| IF THER|
|000005a0| 45 20 49 53 20 41 20 53 | 54 4f 52 59 20 49 4e 20 |E IS A S|TORY IN |
|000005b0| 54 48 45 20 54 45 58 54 | 20 42 4f 58 2e 0d 0d 6f |THE TEXT| BOX...o|
|000005c0| 6e 20 6d 75 73 74 62 65 | 73 74 6f 72 79 28 29 0d |n mustbe|story().|
|000005d0| 09 77 69 74 68 20 51 58 | 50 2c 51 58 50 2e 64 65 |.with QX|P,QXP.de|
|000005e0| 66 73 2c 6f 62 6a 65 63 | 74 4d 6f 64 65 6c 0d 09 |fs,objec|tModel..|
|000005f0| 09 64 69 61 6c 6f 67 2e | 61 6c 65 72 74 28 22 54 |.dialog.|alert("T|
|00000600| 68 65 72 65 20 6d 75 73 | 74 20 62 65 20 61 20 73 |here mus|t be a s|
|00000610| 74 6f 72 79 20 69 6e 20 | 74 68 65 20 74 65 78 74 |tory in |the text|
|00000620| 20 62 6f 78 2e 22 29 0d | 09 09 62 72 69 6e 67 54 | box.").|..bringT|
|00000630| 6f 46 72 6f 6e 74 28 29 | 0d 09 09 73 65 74 28 64 |oFront()|...set(d|
|00000640| 6f 63 75 6d 65 6e 74 5b | 31 5d 2e 76 65 72 74 69 |ocument[|1].verti|
|00000650| 63 61 6c 4d 65 61 73 75 | 72 65 2c 6f 72 69 67 76 |calMeasu|re,origv|
|00000660| 65 72 74 29 0d 09 09 73 | 65 74 28 64 6f 63 75 6d |ert)...s|et(docum|
|00000670| 65 6e 74 5b 31 5d 2e 68 | 6f 72 69 7a 6f 6e 74 61 |ent[1].h|orizonta|
|00000680| 6c 4d 65 61 73 75 72 65 | 2c 6f 72 69 67 68 6f 72 |lMeasure|,orighor|
|00000690| 7a 29 0d 09 09 72 65 74 | 75 72 6e 0d 0d 09 4d 41 |z)...ret|urn...MA|
|000006a0| 49 4e 20 52 4f 55 54 49 | 4e 45 2e 0d 0d 6f 6e 20 |IN ROUTI|NE...on |
|000006b0| 66 69 74 74 65 78 74 62 | 6f 78 28 29 0d 09 77 69 |fittextb|ox()..wi|
|000006c0| 74 68 20 51 58 50 2c 51 | 58 50 2e 64 65 66 73 2c |th QXP,Q|XP.defs,|
|000006d0| 6f 62 6a 65 63 74 4d 6f | 64 65 6c 0d 09 09 62 72 |objectMo|del...br|
|000006e0| 69 6e 67 54 6f 46 72 6f | 6e 74 28 29 0d 09 09 0d |ingToFro|nt()....|
|000006f0| 09 09 09 53 45 54 54 49 | 4e 47 20 44 45 4c 49 4d |...SETTI|NG DELIM|
|00000700| 49 54 20 49 54 45 4d 53 | 20 53 4f 20 54 48 41 54 |IT ITEMS| SO THAT|
|00000710| 20 43 45 52 54 41 49 4e | 20 43 48 41 52 41 43 54 | CERTAIN| CHARACT|
|00000720| 45 52 53 20 57 49 4c 4c | 0d 09 09 09 42 45 20 54 |ERS WILL|....BE T|
|00000730| 41 4b 45 4e 20 49 4e 54 | 4f 20 43 4f 4e 53 49 44 |AKEN INT|O CONSID|
|00000740| 45 52 41 54 49 4f 4e 20 | 57 48 45 4e 20 46 49 54 |ERATION |WHEN FIT|
|00000750| 54 49 4e 47 20 54 48 45 | 20 54 45 58 54 20 42 4f |TING THE| TEXT BO|
|00000760| 58 0d 09 09 09 41 52 4f | 55 4e 44 20 54 48 45 20 |X....ARO|UND THE |
|00000770| 54 45 58 54 2e 0d 09 09 | 0d 09 09 77 69 74 68 20 |TEXT....|...with |
|00000780| 64 65 6c 69 6d 69 74 74 | 61 62 6c 65 5b 31 5d 0d |delimitt|able[1].|
|00000790| 09 09 09 73 65 74 28 64 | 65 6c 69 6d 69 74 49 74 |...set(d|elimitIt|
|000007a0| 65 6d 5b 74 61 62 5d 2c | 63 61 6e 73 74 61 72 74 |em[tab],|canstart|
|000007b0| 6f 72 65 6e 64 6f 72 62 | 65 63 6f 6e 74 61 69 6e |orendorb|econtain|
|000007c0| 65 64 69 6e 77 6f 72 64 | 29 0d 09 09 09 73 65 74 |edinword|)....set|
|000007d0| 28 64 65 6c 69 6d 69 74 | 49 74 65 6d 5b 63 72 5d |(delimit|Item[cr]|
|000007e0| 2c 63 61 6e 73 74 61 72 | 74 6f 72 65 6e 64 6f 72 |,canstar|torendor|
|000007f0| 62 65 63 6f 6e 74 61 69 | 6e 65 64 69 6e 77 6f 72 |becontai|nedinwor|
|00000800| 64 29 0d 09 09 09 73 65 | 74 28 64 65 6c 69 6d 69 |d)....se|t(delimi|
|00000810| 74 49 74 65 6d 5b 22 2e | 22 5d 2c 63 61 6e 73 74 |tItem[".|"],canst|
|00000820| 61 72 74 6f 72 65 6e 64 | 6f 72 62 65 63 6f 6e 74 |artorend|orbecont|
|00000830| 61 69 6e 65 64 69 6e 77 | 6f 72 64 29 0d 09 09 09 |ainedinw|ord)....|
|00000840| 73 65 74 28 64 65 6c 69 | 6d 69 74 49 74 65 6d 5b |set(deli|mitItem[|
|00000850| 22 3f 22 5d 2c 63 61 6e | 73 74 61 72 74 6f 72 65 |"?"],can|startore|
|00000860| 6e 64 6f 72 62 65 63 6f | 6e 74 61 69 6e 65 64 69 |ndorbeco|ntainedi|
|00000870| 6e 77 6f 72 64 29 0d 09 | 09 09 73 65 74 28 64 65 |nword)..|..set(de|
|00000880| 6c 69 6d 69 74 49 74 65 | 6d 5b 22 21 22 5d 2c 63 |limitIte|m["!"],c|
|00000890| 61 6e 73 74 61 72 74 6f | 72 65 6e 64 6f 72 62 65 |anstarto|rendorbe|
|000008a0| 63 6f 6e 74 61 69 6e 65 | 64 69 6e 77 6f 72 64 29 |containe|dinword)|
|000008b0| 0d 09 09 09 73 65 74 28 | 64 65 6c 69 6d 69 74 49 |....set(|delimitI|
|000008c0| 74 65 6d 5b 22 3a 22 5d | 2c 63 61 6e 73 74 61 72 |tem[":"]|,canstar|
|000008d0| 74 6f 72 65 6e 64 6f 72 | 62 65 63 6f 6e 74 61 69 |torendor|becontai|
|000008e0| 6e 65 64 69 6e 77 6f 72 | 64 29 0d 09 09 09 73 65 |nedinwor|d)....se|
|000008f0| 74 28 64 65 6c 69 6d 69 | 74 49 74 65 6d 5b 22 3b |t(delimi|tItem[";|
|00000900| 22 5d 2c 63 61 6e 73 74 | 61 72 74 6f 72 65 6e 64 |"],canst|artorend|
|00000910| 6f 72 62 65 63 6f 6e 74 | 61 69 6e 65 64 69 6e 77 |orbecont|ainedinw|
|00000920| 6f 72 64 29 0d 09 09 0d | 09 09 09 4f 42 54 41 49 |ord)....|...OBTAI|
|00000930| 4e 49 4e 47 20 4f 52 49 | 47 49 4e 41 4c 20 44 4f |NING ORI|GINAL DO|
|00000940| 43 55 4d 45 4e 54 20 53 | 50 45 43 49 46 49 43 41 |CUMENT S|PECIFICA|
|00000950| 54 49 4f 4e 53 20 53 4f | 20 54 48 41 54 20 54 48 |TIONS SO| THAT TH|
|00000960| 45 59 0d 09 09 09 43 41 | 4e 20 42 45 20 52 45 53 |EY....CA|N BE RES|
|00000970| 45 54 20 41 54 20 54 48 | 45 20 45 4e 44 20 4f 46 |ET AT TH|E END OF|
|00000980| 20 54 48 45 20 53 43 52 | 49 50 54 2e 0d 09 09 0d | THE SCR|IPT.....|
|00000990| 09 09 69 66 20 65 78 69 | 73 74 73 28 64 6f 63 75 |..if exi|sts(docu|
|000009a0| 6d 65 6e 74 5b 31 5d 29 | 0d 09 09 09 77 69 74 68 |ment[1])|....with|
|000009b0| 20 64 6f 63 75 6d 65 6e | 74 5b 31 5d 0d 09 09 09 | documen|t[1]....|
|000009c0| 09 6f 72 69 67 76 65 72 | 74 20 3d 20 67 65 74 28 |.origver|t = get(|
|000009d0| 76 65 72 74 69 63 61 6c | 4d 65 61 73 75 72 65 29 |vertical|Measure)|
|000009e0| 0d 09 09 09 09 6f 72 69 | 67 68 6f 72 7a 20 3d 20 |.....ori|ghorz = |
|000009f0| 67 65 74 28 68 6f 72 69 | 7a 6f 6e 74 61 6c 4d 65 |get(hori|zontalMe|
|00000a00| 61 73 75 72 65 29 0d 09 | 09 09 09 73 65 74 28 76 |asure)..|...set(v|
|00000a10| 65 72 74 69 63 61 6c 4d | 65 61 73 75 72 65 2c 70 |erticalM|easure,p|
|00000a20| 6f 69 6e 74 73 29 0d 09 | 09 09 09 73 65 74 28 68 |oints)..|...set(h|
|00000a30| 6f 72 69 7a 6f 6e 74 61 | 6c 4d 65 61 73 75 72 65 |orizonta|lMeasure|
|00000a40| 2c 70 6f 69 6e 74 73 29 | 0d 09 09 09 09 69 66 20 |,points)|.....if |
|00000a50| 21 28 65 78 69 73 74 73 | 28 63 75 72 72 65 6e 74 |!(exists|(current|
|00000a60| 62 6f 78 29 29 0d 09 09 | 09 09 09 63 61 6e 74 64 |box))...|...cantd|
|00000a70| 6f 28 29 0d 09 09 09 09 | 09 72 65 74 75 72 6e 0d |o().....|.return.|
|00000a80| 09 09 09 09 69 66 20 28 | 28 67 65 74 28 63 75 72 |....if (|(get(cur|
|00000a90| 72 65 6e 74 62 6f 78 2e | 62 6f 78 74 79 70 65 29 |rentbox.|boxtype)|
|00000aa0| 20 ad 20 74 65 78 74 62 | 6f 78 29 29 0d 09 09 09 | . textb|ox))....|
|00000ab0| 09 09 63 61 6e 74 64 6f | 28 29 0d 09 09 09 09 09 |..cantdo|()......|
|00000ac0| 72 65 74 75 72 6e 0d 09 | 09 09 09 74 72 79 0d 09 |return..|...try..|
|00000ad0| 09 09 09 09 77 69 74 68 | 20 63 75 72 72 65 6e 74 |....with| current|
|00000ae0| 62 6f 78 0d 09 09 09 09 | 09 09 0d 09 09 09 09 09 |box.....|........|
|00000af0| 09 09 43 48 45 43 4b 20 | 54 4f 20 53 45 45 20 49 |..CHECK |TO SEE I|
|00000b00| 46 20 54 48 45 52 45 20 | 41 52 45 20 41 4e 59 20 |F THERE |ARE ANY |
|00000b10| 43 4f 4e 54 45 4e 54 53 | 20 49 4e 20 54 48 45 20 |CONTENTS| IN THE |
|00000b20| 54 45 58 54 20 42 4f 58 | 2e 0d 09 09 09 09 09 09 |TEXT BOX|........|
|00000b30| 0d 09 09 09 09 09 09 49 | 66 20 21 28 65 78 69 73 |.......I|f !(exis|
|00000b40| 74 73 28 73 74 6f 72 79 | 5b 31 5d 2e 63 68 61 72 |ts(story|[1].char|
|00000b50| 61 63 74 65 72 5b 31 5d | 29 29 0d 09 09 09 09 09 |acter[1]|))......|
|00000b60| 09 09 6d 75 73 74 62 65 | 73 74 6f 72 79 28 29 0d |..mustbe|story().|
|00000b70| 09 09 09 09 09 09 09 72 | 65 74 75 72 6e 0d 09 09 |.......r|eturn...|
|00000b80| 09 09 09 09 0d 09 09 09 | 09 09 09 09 49 46 20 54 |........|....IF T|
|00000b90| 48 45 52 45 20 49 53 20 | 41 20 50 41 52 41 47 52 |HERE IS |A PARAGR|
|00000ba0| 41 50 48 20 52 45 54 55 | 52 4e 20 41 54 20 54 48 |APH RETU|RN AT TH|
|00000bb0| 45 20 45 4e 44 20 4f 46 | 20 54 48 45 20 53 54 4f |E END OF| THE STO|
|00000bc0| 52 59 20 54 48 45 4e 20 | 44 45 4c 45 54 45 20 49 |RY THEN |DELETE I|
|00000bd0| 54 0d 09 09 09 09 09 09 | 09 54 4f 20 45 52 52 41 |T.......|.TO ERRA|
|00000be0| 44 49 43 41 54 45 20 41 | 4e 20 4f 56 45 52 46 4c |DICATE A|N OVERFL|
|00000bf0| 4f 57 20 53 59 4d 42 4f | 4c 2e 0d 09 09 09 09 09 |OW SYMBO|L.......|
|00000c00| 09 0d 09 09 09 09 09 09 | 69 66 20 28 67 65 74 61 |........|if (geta|
|00000c10| 73 28 63 68 61 72 61 63 | 74 65 72 5b 6c 61 73 74 |s(charac|ter[last|
|00000c20| 5d 2c 73 74 72 69 6e 67 | 74 79 70 65 29 20 3d 3d |],string|type) ==|
|00000c30| 20 63 72 20 29 0d 09 09 | 09 09 09 09 09 64 65 6c | cr )...|.....del|
|00000c40| 65 74 65 28 20 63 68 61 | 72 61 63 74 65 72 5b 6c |ete( cha|racter[l|
|00000c50| 61 73 74 5d 29 0d 09 09 | 09 09 09 09 0d 09 09 09 |ast])...|........|
|00000c60| 09 09 09 09 44 45 54 45 | 52 4d 49 4e 49 4e 47 20 |....DETE|RMINING |
|00000c70| 49 46 20 54 48 45 52 45 | 20 41 52 45 20 41 4e 59 |IF THERE| ARE ANY|
|00000c80| 20 49 4e 44 45 4e 54 53 | 20 49 4e 20 54 48 45 20 | INDENTS| IN THE |
|00000c90| 53 54 4f 52 59 0d 09 09 | 09 09 09 09 0d 09 09 09 |STORY...|........|
|00000ca0| 09 09 09 6e 75 6d 70 61 | 72 61 67 72 61 70 68 73 |...numpa|ragraphs|
|00000cb0| 20 3d 20 63 6f 75 6e 74 | 28 63 75 72 72 65 6e 74 | = count|(current|
|00000cc0| 62 6f 78 2c 70 61 72 61 | 67 72 61 70 68 29 0d 09 |box,para|graph)..|
|00000cd0| 09 09 09 09 09 69 66 20 | 6e 75 6d 70 61 72 61 67 |.....if |numparag|
|00000ce0| 72 61 70 68 73 20 3d 3d | 20 31 0d 09 09 09 09 09 |raphs ==| 1......|
|00000cf0| 09 09 6d 69 6e 6c 65 66 | 74 69 6e 64 65 6e 74 20 |..minlef|tindent |
|00000d00| 3d 20 67 65 74 61 73 28 | 70 61 72 61 67 72 61 70 |= getas(|paragrap|
|00000d10| 68 5b 31 5d 2e 6c 65 66 | 74 69 6e 64 65 6e 74 2c |h[1].lef|tindent,|
|00000d20| 66 69 78 65 64 74 79 70 | 65 29 0d 09 09 09 09 09 |fixedtyp|e)......|
|00000d30| 09 09 6d 69 6e 72 69 67 | 68 74 69 6e 64 65 6e 74 |..minrig|htindent|
|00000d40| 20 3d 20 67 65 74 61 73 | 28 70 61 72 61 67 72 61 | = getas|(paragra|
|00000d50| 70 68 5b 31 5d 2e 72 69 | 67 68 74 69 6e 64 65 6e |ph[1].ri|ghtinden|
|00000d60| 74 2c 66 69 78 65 64 74 | 79 70 65 29 0d 09 09 09 |t,fixedt|ype)....|
|00000d70| 09 09 09 09 6d 69 6e 69 | 6e 64 65 6e 74 73 20 3d |....mini|ndents =|
|00000d80| 20 6d 69 6e 6c 65 66 74 | 69 6e 64 65 6e 74 2b 6d | minleft|indent+m|
|00000d90| 69 6e 72 69 67 68 74 69 | 6e 64 65 6e 74 0d 09 09 |inrighti|ndent...|
|00000da0| 09 09 09 09 09 6d 61 78 | 77 69 64 74 68 20 3d 20 |.....max|width = |
|00000db0| 67 65 74 61 73 28 70 61 | 72 61 67 72 61 70 68 5b |getas(pa|ragraph[|
|00000dc0| 31 5d 2e 6c 69 6e 65 5b | 31 5d 2e 77 69 64 74 68 |1].line[|1].width|
|00000dd0| 2c 66 69 78 65 64 74 79 | 70 65 29 2b 6d 69 6e 69 |,fixedty|pe)+mini|
|00000de0| 6e 64 65 6e 74 73 0d 09 | 09 09 09 09 09 09 6e 75 |ndents..|......nu|
|00000df0| 6d 6c 69 6e 65 73 20 3d | 20 63 6f 75 6e 74 28 70 |mlines =| count(p|
|00000e00| 61 72 61 67 72 61 70 68 | 5b 31 5d 2c 6c 69 6e 65 |aragraph|[1],line|
|00000e10| 29 0d 09 09 09 09 09 09 | 09 69 66 20 6e 75 6d 6c |).......|.if numl|
|00000e20| 69 6e 65 73 20 3d 3d 20 | 31 0d 09 09 09 09 09 09 |ines == |1.......|
|00000e30| 09 09 62 6c 61 68 20 3d | 20 67 65 74 61 73 28 74 |..blah =| getas(t|
|00000e40| 65 78 74 69 6e 73 65 74 | 2e 70 6c 65 66 74 2c 66 |extinset|.pleft,f|
|00000e50| 69 78 65 64 74 79 70 65 | 29 2b 67 65 74 61 73 28 |ixedtype|)+getas(|
|00000e60| 74 65 78 74 69 6e 73 65 | 74 2e 70 72 69 67 68 74 |textinse|t.pright|
|00000e70| 2c 66 69 78 65 64 74 79 | 70 65 29 2b 6d 61 78 77 |,fixedty|pe)+maxw|
|00000e80| 69 64 74 68 0d 09 09 09 | 09 09 09 09 09 73 65 74 |idth....|.....set|
|00000e90| 20 28 62 6f 75 6e 64 73 | 2e 77 69 64 74 68 2c 28 | (bounds|.width,(|
|00000ea0| 67 65 74 61 73 28 74 65 | 78 74 69 6e 73 65 74 2e |getas(te|xtinset.|
|00000eb0| 70 6c 65 66 74 2c 66 69 | 78 65 64 74 79 70 65 29 |pleft,fi|xedtype)|
|00000ec0| 2b 67 65 74 61 73 28 74 | 65 78 74 69 6e 73 65 74 |+getas(t|extinset|
|00000ed0| 2e 70 72 69 67 68 74 2c | 66 69 78 65 64 74 79 70 |.pright,|fixedtyp|
|00000ee0| 65 29 2b 6d 61 78 77 69 | 64 74 68 29 29 0d 09 09 |e)+maxwi|dth))...|
|00000ef0| 09 09 09 09 65 6c 73 65 | 0d 09 09 09 09 09 09 09 |....else|........|
|00000f00| 6d 69 6e 6c 65 66 74 69 | 6e 64 65 6e 74 20 3d 20 |minlefti|ndent = |
|00000f10| 67 65 74 61 73 28 70 61 | 72 61 67 72 61 70 68 5b |getas(pa|ragraph[|
|00000f20| 31 5d 2e 6c 65 66 74 69 | 6e 64 65 6e 74 2c 66 69 |1].lefti|ndent,fi|
|00000f30| 78 65 64 74 79 70 65 29 | 0d 09 09 09 09 09 09 09 |xedtype)|........|
|00000f40| 6d 69 6e 72 69 67 68 74 | 69 6e 64 65 6e 74 20 3d |minright|indent =|
|00000f50| 20 67 65 74 61 73 28 70 | 61 72 61 67 72 61 70 68 | getas(p|aragraph|
|00000f60| 5b 31 5d 2e 72 69 67 68 | 74 69 6e 64 65 6e 74 2c |[1].righ|tindent,|
|00000f70| 66 69 78 65 64 74 79 70 | 65 29 0d 09 09 09 09 09 |fixedtyp|e)......|
|00000f80| 09 09 6d 69 6e 69 6e 64 | 65 6e 74 73 20 3d 20 6d |..minind|ents = m|
|00000f90| 69 6e 6c 65 66 74 69 6e | 64 65 6e 74 2b 6d 69 6e |inleftin|dent+min|
|00000fa0| 72 69 67 68 74 69 6e 64 | 65 6e 74 0d 09 09 09 09 |rightind|ent.....|
|00000fb0| 09 09 09 6d 61 78 77 69 | 64 74 68 20 3d 20 67 65 |...maxwi|dth = ge|
|00000fc0| 74 61 73 28 70 61 72 61 | 67 72 61 70 68 5b 31 5d |tas(para|graph[1]|
|00000fd0| 2e 6c 69 6e 65 5b 31 5d | 2e 77 69 64 74 68 2c 66 |.line[1]|.width,f|
|00000fe0| 69 78 65 64 74 79 70 65 | 29 2b 6d 69 6e 69 6e 64 |ixedtype|)+minind|
|00000ff0| 65 6e 74 73 0d 09 09 09 | 09 09 09 09 66 6f 72 20 |ents....|....for |
|00001000| 69 20 3d 20 31 20 74 6f | 20 6e 75 6d 70 61 72 61 |i = 1 to| numpara|
|00001010| 67 72 61 70 68 73 0d 09 | 09 09 09 09 09 09 09 6d |graphs..|.......m|
|00001020| 69 6e 6c 65 66 74 69 6e | 64 65 6e 74 20 3d 20 67 |inleftin|dent = g|
|00001030| 65 74 61 73 28 70 61 72 | 61 67 72 61 70 68 5b 69 |etas(par|agraph[i|
|00001040| 5d 2e 6c 65 66 74 69 6e | 64 65 6e 74 2c 66 69 78 |].leftin|dent,fix|
|00001050| 65 64 74 79 70 65 29 0d | 09 09 09 09 09 09 09 09 |edtype).|........|
|00001060| 6d 69 6e 72 69 67 68 74 | 69 6e 64 65 6e 74 20 3d |minright|indent =|
|00001070| 20 67 65 74 61 73 28 70 | 61 72 61 67 72 61 70 68 | getas(p|aragraph|
|00001080| 5b 69 5d 2e 72 69 67 68 | 74 69 6e 64 65 6e 74 2c |[i].righ|tindent,|
|00001090| 66 69 78 65 64 74 79 70 | 65 29 0d 09 09 09 09 09 |fixedtyp|e)......|
|000010a0| 09 09 09 6d 69 6e 69 6e | 64 65 6e 74 73 20 3d 20 |...minin|dents = |
|000010b0| 6d 69 6e 6c 65 66 74 69 | 6e 64 65 6e 74 2b 6d 69 |minlefti|ndent+mi|
|000010c0| 6e 72 69 67 68 74 69 6e | 64 65 6e 74 0d 09 09 09 |nrightin|dent....|
|000010d0| 09 09 09 09 09 0d 09 09 | 09 09 09 09 09 09 09 46 |........|.......F|
|000010e0| 49 4e 44 49 4e 47 20 54 | 48 45 20 4e 55 4d 42 45 |INDING T|HE NUMBE|
|000010f0| 52 20 4f 46 20 4c 49 4e | 45 53 20 49 4e 20 41 20 |R OF LIN|ES IN A |
|00001100| 50 41 52 41 47 52 41 50 | 48 0d 09 09 09 09 09 09 |PARAGRAP|H.......|
|00001110| 09 09 0d 09 09 09 09 09 | 09 09 09 6e 75 6d 6c 69 |........|...numli|
|00001120| 6e 65 73 20 3d 20 63 6f | 75 6e 74 28 70 61 72 61 |nes = co|unt(para|
|00001130| 67 72 61 70 68 5b 69 5d | 2c 6c 69 6e 65 29 0d 09 |graph[i]|,line)..|
|00001140| 09 09 09 09 09 09 09 0d | 09 09 09 09 09 09 09 09 |........|........|
|00001150| 09 49 46 20 54 48 49 53 | 20 49 53 20 54 48 45 20 |.IF THIS| IS THE |
|00001160| 46 49 52 53 54 20 50 41 | 52 41 47 52 41 50 48 20 |FIRST PA|RAGRAPH |
|00001170| 53 54 41 52 54 20 27 54 | 52 59 27 20 43 4f 4d 50 |START 'T|RY' COMP|
|00001180| 41 52 49 4e 47 20 41 54 | 20 54 48 45 20 53 45 43 |ARING AT| THE SEC|
|00001190| 4f 4e 44 20 4c 49 4e 45 | 0d 09 09 09 09 09 09 09 |OND LINE|........|
|000011a0| 09 0d 09 09 09 09 09 09 | 09 09 69 66 20 28 69 3d |........|..if (i=|
|000011b0| 3d 31 29 0d 09 09 09 09 | 09 09 09 09 09 74 72 79 |=1).....|.....try|
|000011c0| 0d 09 09 09 09 09 09 09 | 09 09 09 66 6f 72 20 6a |........|...for j|
|000011d0| 3d 32 20 74 6f 20 6e 75 | 6d 6c 69 6e 65 73 0d 09 |=2 to nu|mlines..|
|000011e0| 09 09 09 09 09 09 09 09 | 09 09 69 66 20 28 28 67 |........|..if ((g|
|000011f0| 65 74 61 73 28 70 61 72 | 61 67 72 61 70 68 5b 69 |etas(par|agraph[i|
|00001200| 5d 2e 6c 69 6e 65 5b 6a | 5d 2e 77 69 64 74 68 2c |].line[j|].width,|
|00001210| 66 69 78 65 64 74 79 70 | 65 29 2b 6d 69 6e 69 6e |fixedtyp|e)+minin|
|00001220| 64 65 6e 74 73 29 3e 6d | 61 78 77 69 64 74 68 29 |dents)>m|axwidth)|
|00001230| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 6d 61 78 |........|.....max|
|00001240| 77 69 64 74 68 20 3d 20 | 67 65 74 61 73 28 70 61 |width = |getas(pa|
|00001250| 72 61 67 72 61 70 68 5b | 69 5d 2e 6c 69 6e 65 5b |ragraph[|i].line[|
|00001260| 6a 5d 2e 77 69 64 74 68 | 2c 66 69 78 65 64 74 79 |j].width|,fixedty|
|00001270| 70 65 29 2b 6d 69 6e 69 | 6e 64 65 6e 74 73 0d 09 |pe)+mini|ndents..|
|00001280| 09 09 09 09 09 09 09 65 | 6c 73 65 0d 09 09 09 09 |.......e|lse.....|
|00001290| 09 09 09 09 09 66 6f 72 | 20 6a 3d 31 20 74 6f 20 |.....for| j=1 to |
|000012a0| 6e 75 6d 6c 69 6e 65 73 | 0d 09 09 09 09 09 09 09 |numlines|........|
|000012b0| 09 09 09 69 66 20 28 28 | 67 65 74 61 73 28 70 61 |...if ((|getas(pa|
|000012c0| 72 61 67 72 61 70 68 5b | 69 5d 2e 6c 69 6e 65 5b |ragraph[|i].line[|
|000012d0| 6a 5d 2e 77 69 64 74 68 | 2c 66 69 78 65 64 74 79 |j].width|,fixedty|
|000012e0| 70 65 29 2b 6d 69 6e 69 | 6e 64 65 6e 74 73 29 3e |pe)+mini|ndents)>|
|000012f0| 6d 61 78 77 69 64 74 68 | 29 0d 09 09 09 09 09 09 |maxwidth|).......|
|00001300| 09 09 09 09 09 6d 61 78 | 77 69 64 74 68 20 3d 20 |.....max|width = |
|00001310| 67 65 74 61 73 28 70 61 | 72 61 67 72 61 70 68 5b |getas(pa|ragraph[|
|00001320| 69 5d 2e 6c 69 6e 65 5b | 6a 5d 2e 77 69 64 74 68 |i].line[|j].width|
|00001330| 2c 66 69 78 65 64 74 79 | 70 65 29 2b 6d 69 6e 69 |,fixedty|pe)+mini|
|00001340| 6e 64 65 6e 74 73 0d 09 | 09 09 09 09 09 09 66 69 |ndents..|......fi|
|00001350| 6e 61 6c 6d 61 78 77 69 | 64 74 68 3d 6d 61 78 77 |nalmaxwi|dth=maxw|
|00001360| 69 64 74 68 0d 09 09 09 | 09 09 09 09 73 65 74 28 |idth....|....set(|
|00001370| 62 6f 75 6e 64 73 2e 77 | 69 64 74 68 2c 28 67 65 |bounds.w|idth,(ge|
|00001380| 74 61 73 28 74 65 78 74 | 69 6e 73 65 74 2e 70 6c |tas(text|inset.pl|
|00001390| 65 66 74 2c 66 69 78 65 | 64 74 79 70 65 29 2b 67 |eft,fixe|dtype)+g|
|000013a0| 65 74 61 73 28 74 65 78 | 74 69 6e 73 65 74 2e 70 |etas(tex|tinset.p|
|000013b0| 72 69 67 68 74 2c 66 69 | 78 65 64 74 79 70 65 29 |right,fi|xedtype)|
|000013c0| 2b 66 69 6e 61 6c 6d 61 | 78 77 69 64 74 68 29 29 |+finalma|xwidth))|
|000013d0| 0d 09 09 09 09 09 09 0d | 09 09 09 09 09 09 09 46 |........|.......F|
|000013e0| 49 4e 44 49 4e 47 20 54 | 48 45 20 42 41 53 45 4c |INDING T|HE BASEL|
|000013f0| 49 4e 45 20 41 4e 44 20 | 54 48 45 20 44 45 53 43 |INE AND |THE DESC|
|00001400| 45 4e 54 20 4f 46 20 54 | 48 45 20 4c 41 53 54 20 |ENT OF T|HE LAST |
|00001410| 4c 49 4e 45 20 41 4e 44 | 20 41 44 44 49 4e 47 0d |LINE AND| ADDING.|
|00001420| 09 09 09 09 09 09 09 54 | 48 4f 53 45 20 54 4f 20 |.......T|HOSE TO |
|00001430| 54 48 45 20 54 45 58 54 | 20 49 4e 53 45 54 20 4f |THE TEXT| INSET O|
|00001440| 46 20 54 48 45 20 42 4f | 54 54 4f 4d 20 50 41 52 |F THE BO|TTOM PAR|
|00001450| 54 20 4f 46 20 54 48 45 | 20 42 4f 55 4e 44 53 20 |T OF THE| BOUNDS |
|00001460| 50 4c 55 53 20 54 48 45 | 20 54 45 58 54 20 0d 09 |PLUS THE| TEXT ..|
|00001470| 09 09 09 09 09 09 49 4e | 53 45 54 20 4f 46 20 54 |......IN|SET OF T|
|00001480| 48 45 20 54 4f 50 20 50 | 41 52 54 20 4f 46 20 54 |HE TOP P|ART OF T|
|00001490| 48 45 20 42 4f 55 4e 44 | 53 2e 20 20 46 52 4f 4d |HE BOUND|S. FROM|
|000014a0| 20 54 48 49 53 20 56 41 | 4c 55 45 20 54 48 45 20 | THIS VA|LUE THE |
|000014b0| 53 55 4d 4d 41 54 49 4f | 4e 20 4f 46 20 54 48 45 |SUMMATIO|N OF THE|
|000014c0| 20 42 41 53 45 4c 49 4e | 45 0d 09 09 09 09 09 09 | BASELIN|E.......|
|000014d0| 09 41 4e 44 20 54 48 45 | 20 41 53 43 45 4e 54 20 |.AND THE| ASCENT |
|000014e0| 4f 46 20 54 48 45 20 46 | 49 52 53 54 20 4c 49 4e |OF THE F|IRST LIN|
|000014f0| 45 20 4f 46 20 54 48 45 | 20 53 54 4f 52 59 20 41 |E OF THE| STORY A|
|00001500| 52 45 20 53 55 42 54 52 | 41 43 54 45 44 20 0d 09 |RE SUBTR|ACTED ..|
|00001510| 09 09 09 09 09 09 54 4f | 20 46 49 4e 44 20 54 48 |......TO| FIND TH|
|00001520| 45 20 4e 45 57 20 48 45 | 49 47 48 54 20 4f 46 20 |E NEW HE|IGHT OF |
|00001530| 54 48 45 20 54 45 58 54 | 20 42 4f 58 2e 0d 09 09 |THE TEXT| BOX....|
|00001540| 09 09 09 09 0d 09 09 09 | 09 09 09 6d 61 72 62 6f |........|...marbo|
|00001550| 74 74 6f 6d 20 3d 28 67 | 65 74 61 73 28 6c 69 6e |ttom =(g|etas(lin|
|00001560| 65 5b 6c 61 73 74 5d 2e | 62 61 73 65 6c 69 6e 65 |e[last].|baseline|
|00001570| 2c 66 69 78 65 64 74 79 | 70 65 29 2b 67 65 74 61 |,fixedty|pe)+geta|
|00001580| 73 28 6c 69 6e 65 5b 6c | 61 73 74 5d 2e 64 65 73 |s(line[l|ast].des|
|00001590| 63 65 6e 74 2c 66 69 78 | 65 64 74 79 70 65 29 29 |cent,fix|edtype))|
|000015a0| 0d 09 09 09 09 09 09 69 | 73 74 68 65 72 65 72 75 |.......i|sthereru|
|000015b0| 6c 65 62 65 6c 6f 77 3d | 67 65 74 28 70 61 72 61 |lebelow=|get(para|
|000015c0| 67 72 61 70 68 5b 6c 61 | 73 74 5d 2e 72 75 6c 65 |graph[la|st].rule|
|000015d0| 62 65 6c 6f 77 2e 72 75 | 6c 65 6f 6e 29 0d 09 09 |below.ru|leon)...|
|000015e0| 09 09 09 09 69 66 20 28 | 69 73 74 68 65 72 65 72 |....if (|istherer|
|000015f0| 75 6c 65 62 65 6c 6f 77 | 20 3d 3d 20 74 72 75 65 |ulebelow| == true|
|00001600| 29 0d 09 09 09 09 09 09 | 09 72 75 6c 65 77 69 64 |).......|.rulewid|
|00001610| 74 68 20 3d 20 67 65 74 | 61 73 28 70 61 72 61 67 |th = get|as(parag|
|00001620| 72 61 70 68 5b 6c 61 73 | 74 5d 2e 72 75 6c 65 62 |raph[las|t].ruleb|
|00001630| 65 6c 6f 77 2e 77 69 64 | 74 68 2c 66 69 78 65 64 |elow.wid|th,fixed|
|00001640| 74 79 70 65 29 0d 09 09 | 09 09 09 09 09 74 6f 70 |type)...|.....top|
|00001650| 6f 66 73 74 6f 72 79 20 | 3d 20 28 67 65 74 61 73 |ofstory |= (getas|
|00001660| 28 6c 69 6e 65 5b 66 69 | 72 73 74 5d 2e 62 61 73 |(line[fi|rst].bas|
|00001670| 65 6c 69 6e 65 2c 66 69 | 78 65 64 74 79 70 65 29 |eline,fi|xedtype)|
|00001680| 2d 67 65 74 61 73 28 6c | 69 6e 65 5b 66 69 72 73 |-getas(l|ine[firs|
|00001690| 74 5d 2e 61 73 63 65 6e | 74 2c 66 69 78 65 64 74 |t].ascen|t,fixedt|
|000016a0| 79 70 65 29 29 0d 09 09 | 09 09 09 09 09 62 6f 74 |ype))...|.....bot|
|000016b0| 74 6f 6d 69 6e 73 65 74 | 20 3d 20 67 65 74 61 73 |tominset| = getas|
|000016c0| 28 74 65 78 74 69 6e 73 | 65 74 2e 70 62 6f 74 74 |(textins|et.pbott|
|000016d0| 6f 6d 2c 66 69 78 65 64 | 74 79 70 65 29 0d 09 09 |om,fixed|type)...|
|000016e0| 09 09 09 09 09 74 6f 70 | 69 6e 73 65 74 20 3d 20 |.....top|inset = |
|000016f0| 67 65 74 61 73 28 74 65 | 78 74 69 6e 73 65 74 2e |getas(te|xtinset.|
|00001700| 70 74 6f 70 2c 66 69 78 | 65 64 74 79 70 65 29 0d |ptop,fix|edtype).|
|00001710| 09 09 09 09 09 09 09 64 | 65 73 63 65 6e 64 65 72 |.......d|escender|
|00001720| 20 3d 20 67 65 74 61 73 | 28 6c 69 6e 65 5b 6c 61 | = getas|(line[la|
|00001730| 73 74 5d 2e 64 65 73 63 | 65 6e 74 2c 66 69 78 65 |st].desc|ent,fixe|
|00001740| 64 74 79 70 65 29 0d 09 | 09 09 09 09 09 09 6d 61 |dtype)..|......ma|
|00001750| 72 62 6f 74 74 6f 6d 20 | 3d 20 6d 61 72 62 6f 74 |rbottom |= marbot|
|00001760| 74 6f 6d 20 2b 20 72 75 | 6c 65 77 69 64 74 68 2d |tom + ru|lewidth-|
|00001770| 64 65 73 63 65 6e 64 65 | 72 2b 62 6f 74 74 6f 6d |descende|r+bottom|
|00001780| 69 6e 73 65 74 0d 09 09 | 09 09 09 09 09 73 65 74 |inset...|.....set|
|00001790| 28 62 6f 75 6e 64 73 2e | 68 65 69 67 68 74 2c 28 |(bounds.|height,(|
|000017a0| 6d 61 72 62 6f 74 74 6f | 6d 2d 74 6f 70 6f 66 73 |marbotto|m-topofs|
|000017b0| 74 6f 72 79 2b 62 6f 74 | 74 6f 6d 69 6e 73 65 74 |tory+bot|tominset|
|000017c0| 2b 74 6f 70 69 6e 73 65 | 74 29 29 0d 09 09 09 09 |+topinse|t)).....|
|000017d0| 09 09 65 6c 73 65 0d 09 | 09 09 09 09 09 09 74 6f |..else..|......to|
|000017e0| 70 6f 66 73 74 6f 72 79 | 20 3d 20 28 67 65 74 61 |pofstory| = (geta|
|000017f0| 73 28 6c 69 6e 65 5b 66 | 69 72 73 74 5d 2e 62 61 |s(line[f|irst].ba|
|00001800| 73 65 6c 69 6e 65 2c 66 | 69 78 65 64 74 79 70 65 |seline,f|ixedtype|
|00001810| 29 2d 67 65 74 61 73 28 | 6c 69 6e 65 5b 66 69 72 |)-getas(|line[fir|
|00001820| 73 74 5d 2e 61 73 63 65 | 6e 74 2c 66 69 78 65 64 |st].asce|nt,fixed|
|00001830| 74 79 70 65 29 29 0d 09 | 09 09 09 09 09 09 62 6f |type))..|......bo|
|00001840| 74 74 6f 6d 69 6e 73 65 | 74 20 3d 20 67 65 74 61 |ttominse|t = geta|
|00001850| 73 28 74 65 78 74 69 6e | 73 65 74 2e 70 62 6f 74 |s(textin|set.pbot|
|00001860| 74 6f 6d 2c 66 69 78 65 | 64 74 79 70 65 29 0d 09 |tom,fixe|dtype)..|
|00001870| 09 09 09 09 09 09 74 6f | 70 69 6e 73 65 74 20 3d |......to|pinset =|
|00001880| 20 67 65 74 61 73 28 74 | 65 78 74 69 6e 73 65 74 | getas(t|extinset|
|00001890| 2e 70 74 6f 70 2c 66 69 | 78 65 64 74 79 70 65 29 |.ptop,fi|xedtype)|
|000018a0| 0d 09 09 09 09 09 09 09 | 73 65 74 28 62 6f 75 6e |........|set(boun|
|000018b0| 64 73 2e 68 65 69 67 68 | 74 2c 28 6d 61 72 62 6f |ds.heigh|t,(marbo|
|000018c0| 74 74 6f 6d 2d 74 6f 70 | 6f 66 73 74 6f 72 79 2b |ttom-top|ofstory+|
|000018d0| 62 6f 74 74 6f 6d 69 6e | 73 65 74 2b 74 6f 70 69 |bottomin|set+topi|
|000018e0| 6e 73 65 74 29 29 0d 09 | 09 09 09 65 6c 73 65 0d |nset))..|...else.|
|000018f0| 09 09 09 09 09 63 61 6e | 74 64 6f 28 29 0d 09 09 |.....can|tdo()...|
|00001900| 09 09 0d 09 09 09 09 09 | 52 45 53 45 54 20 54 48 |........|RESET TH|
|00001910| 45 20 44 4f 43 55 4d 45 | 4e 54 20 53 50 45 43 49 |E DOCUME|NT SPECI|
|00001920| 46 49 43 41 54 49 4f 4e | 53 20 42 41 43 4b 20 54 |FICATION|S BACK T|
|00001930| 4f 20 54 48 45 20 4f 52 | 49 47 49 4e 41 4c 20 53 |O THE OR|IGINAL S|
|00001940| 45 54 54 49 4e 47 53 2e | 0d 09 09 09 09 0d 09 09 |ETTINGS.|........|
|00001950| 09 09 73 65 74 28 76 65 | 72 74 69 63 61 6c 4d 65 |..set(ve|rticalMe|
|00001960| 61 73 75 72 65 2c 6f 72 | 69 67 76 65 72 74 29 0d |asure,or|igvert).|
|00001970| 09 09 09 09 73 65 74 28 | 68 6f 72 69 7a 6f 6e 74 |....set(|horizont|
|00001980| 61 6c 4d 65 61 73 75 72 | 65 2c 6f 72 69 67 68 6f |alMeasur|e,origho|
|00001990| 72 7a 29 0d 09 09 65 6c | 73 65 0d 09 09 09 64 69 |rz)...el|se....di|
|000019a0| 61 6c 6f 67 2e 6e 6f 74 | 69 66 79 28 22 50 6c 65 |alog.not|ify("Ple|
|000019b0| 61 73 65 20 68 61 76 65 | 20 61 20 64 6f 63 75 6d |ase have| a docum|
|000019c0| 65 6e 74 20 6f 70 65 6e | 20 62 65 66 6f 72 65 20 |ent open| before |
|000019d0| 72 75 6e 6e 69 6e 67 20 | 74 68 69 73 20 73 63 72 |running |this scr|
|000019e0| 69 70 74 2e 22 29 0d 09 | 09 0d 09 09 09 52 45 53 |ipt.")..|.....RES|
|000019f0| 45 54 20 54 48 45 20 44 | 45 4c 49 4d 49 54 20 49 |ET THE D|ELIMIT I|
|00001a00| 54 45 4d 53 20 42 41 43 | 4b 20 54 4f 20 54 48 45 |TEMS BAC|K TO THE|
|00001a10| 20 4f 52 49 47 49 4e 41 | 4c 20 53 45 54 54 49 4e | ORIGINA|L SETTIN|
|00001a20| 47 53 2e 0d 09 09 0d 09 | 09 62 72 69 6e 67 54 6f |GS......|.bringTo|
|00001a30| 46 72 6f 6e 74 28 29 0d | 09 09 77 69 74 68 20 64 |Front().|..with d|
|00001a40| 65 6c 69 6d 69 74 74 61 | 62 6c 65 5b 31 5d 0d 09 |elimitta|ble[1]..|
|00001a50| 09 09 73 65 74 28 64 65 | 6c 69 6d 69 74 49 74 65 |..set(de|limitIte|
|00001a60| 6d 5b 74 61 62 5d 2c 6e | 6f 74 77 6f 72 64 6d 65 |m[tab],n|otwordme|
|00001a70| 6d 62 65 72 29 0d 09 09 | 09 73 65 74 28 64 65 6c |mber)...|.set(del|
|00001a80| 69 6d 69 74 49 74 65 6d | 5b 63 72 5d 2c 6e 6f 74 |imitItem|[cr],not|
|00001a90| 77 6f 72 64 6d 65 6d 62 | 65 72 29 0d 09 09 09 73 |wordmemb|er)....s|
|00001aa0| 65 74 28 64 65 6c 69 6d | 69 74 49 74 65 6d 5b 22 |et(delim|itItem["|
|00001ab0| 2e 22 5d 2c 6e 6f 74 77 | 6f 72 64 6d 65 6d 62 65 |."],notw|ordmembe|
|00001ac0| 72 29 0d 09 09 09 73 65 | 74 28 64 65 6c 69 6d 69 |r)....se|t(delimi|
|00001ad0| 74 49 74 65 6d 5b 22 3f | 22 5d 2c 6e 6f 74 77 6f |tItem["?|"],notwo|
|00001ae0| 72 64 6d 65 6d 62 65 72 | 29 0d 09 09 09 73 65 74 |rdmember|)....set|
|00001af0| 28 64 65 6c 69 6d 69 74 | 49 74 65 6d 5b 22 21 22 |(delimit|Item["!"|
|00001b00| 5d 2c 6e 6f 74 77 6f 72 | 64 6d 65 6d 62 65 72 29 |],notwor|dmember)|
|00001b10| 0d 09 09 09 73 65 74 28 | 64 65 6c 69 6d 69 74 49 |....set(|delimitI|
|00001b20| 74 65 6d 5b 22 3a 22 5d | 2c 6e 6f 74 77 6f 72 64 |tem[":"]|,notword|
|00001b30| 6d 65 6d 62 65 72 29 0d | 09 09 09 73 65 74 28 64 |member).|...set(d|
|00001b40| 65 6c 69 6d 69 74 49 74 | 65 6d 5b 22 3b 22 5d 2c |elimitIt|em[";"],|
|00001b50| 6e 6f 74 77 6f 72 64 6d | 65 6d 62 65 72 29 0d 66 |notwordm|ember).f|
|00001b60| 69 74 74 65 78 74 62 6f | 78 28 29 0d 80 00 00 00 |ittextbo|x().....|
|00001b70| 00 00 84 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001b80| 00 00 00 00 84 00 00 00 | 00 00 84 00 00 00 00 00 |........|........|
|00001b90| 04 00 00 00 00 00 04 00 | 00 00 00 00 84 00 00 00 |........|........|
|00001ba0| 00 00 80 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 84 00 00 00 |........|........|
|00001bd0| 00 00 04 00 00 00 00 00 | 84 00 00 00 00 00 80 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 00 00 00 00 00 00 00 00 | 84 00 00 00 00 00 04 00 |........|........|
|00001c10| 00 00 00 00 84 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001c30| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001c40| 00 00 00 00 04 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001c80| 04 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001cf0| 00 00 04 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001d10| 04 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 00 |........|........|
|00001d30| 00 00 00 00 04 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001dd0| 04 00 00 00 00 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 00 |........|........|
|00001e20| 00 00 00 00 04 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001e30| 04 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001e40| 00 00 04 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 00 |........|........|
|00001eb0| 00 00 00 00 04 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001ee0| 00 00 00 00 04 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 80 00 00 00 00 00 00 00 | 01 00 00 00 1e a6 00 00 |........|........|
|00001f30| 1d a6 00 00 00 aa 00 65 | 1d 24 18 fa 00 00 00 1c |.......e|.$......|
|00001f40| 00 7e 00 02 53 54 52 20 | 00 03 00 1a 73 63 70 74 |.~..STR |....scpt|
|00001f50| 00 00 00 4a 64 61 74 61 | 00 00 00 56 00 80 ff ff |...Jdata|...V....|
|00001f60| 00 00 00 00 00 00 00 00 | bf f4 ff ff 00 00 00 0a |........|........|
|00001f70| 00 00 00 00 00 82 ff ff | 00 00 01 dd 00 00 00 00 |........|........|
|00001f80| 00 7f ff ff 00 00 01 ee | 00 00 00 00 00 81 ff ff |........|........|
|00001f90| 00 00 00 17 00 00 00 00 | 47 cc 00 00 00 00 01 f4 |........|G.......|
|00001fa0| 00 00 00 00 2b 73 79 73 | 74 65 6d 2e 76 65 72 62 |....+sys|tem.verb|
|00001fb0| 73 2e 61 70 70 73 2e 51 | 58 50 2e 45 78 61 6d 70 |s.apps.Q|XP.Examp|
|00001fc0| 6c 65 73 2e 46 69 74 42 | 6f 78 54 6f 54 65 78 74 |les.FitB|oxToText|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+